cmake_minimum_required(VERSION 3.22)
project(HttpServer)
include_directories(
    D:/Opensource/openssl/include
    D:/Opensource/drogon/lib/inc
    D:/Opensource/drogon/trantor
    D:/Opensource/drogon/orm_lib/inc
    D:/Opensource/drogon/nosql_lib/redis/inc
    D:/Opensource/jsoncpp/include
    D:/Opensource/zlib
    D:/Opensource/boost_1_78_0/

    "D:/Program Files/MATLAB/R2017b/extern/include"
    "D:/Opensource/Python-3.10.2/Include"
    #"D:/Program Files/Python38/include"
)
link_directories(
    D:/Opensource/libevent/build/lib
    D:/Opensource/openssl
    D:/Opensource/drogon/build
    D:/Opensource/drogon/build/trantor
    D:/Opensource/jsoncpp/build/lib
    D:/Opensource/SqliteCPP/build/sqlite3
    D:/Opensource/zlib/build

    "D:/Program Files/MATLAB/R2017b/extern/lib/win64/mingw64"
    "D:/Opensource/Python-3.10.2/PCbuild/amd64"
    #"D:/Program Files/Python38/libs"
)
if(MSVC)
add_compile_options(/std:c++20)
else()
add_compile_options(-std=c++20)
endif()
add_definitions(-D_WINSOCK_DEPRECATED_NO_WARNINGS -DPy_NO_ENABLE_SHARED)
file(GLOB code_http . "*.h" "*.cpp")
add_executable(HttpServer ${code_http})
target_link_libraries(HttpServer ws2_32.lib libssl_static.lib libcrypto_static.lib Rpcrt4.lib crypt32.lib
    jsoncpp_static.lib zlibstatic.lib drogon.lib trantor.lib libeng.lib python310_d.lib version.lib;ws2_32.lib;pathcch.lib
    libboost_locale-clangw14-mt-gd-x64-1_78.lib libboost_filesystem-clangw14-mt-gd-x64-1_78.lib
    D:/Opensource/SqliteCPP/build/sqlite3/sqlite3.lib)